package com.example.testapp

abstract class AbstractApilaryManager {
    private var managerState: String = "inactive"
    private var resourceCount: Int = 0
    
    abstract fun initializeManager(): Boolean
    abstract fun processRequest(requestData: String): String
    abstract fun shutdownManager()
    
    protected fun updateState(newState: String) {
        managerState = newState
    }
    
    protected fun incrementResourceCount() {
        resourceCount++
    }
    
    fun getManagerState(): String {
        return managerState
    }
    
    fun getResourceCount(): Int {
        return resourceCount
    }
}